﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace H.Daos
{
    /// <summary>
    /// Dao工厂
    /// </summary>
    public interface IDaoFactory : IFactory
    {
        /// <summary>
        /// 创建Dao实例
        /// </summary>
        /// <param name="dbFile">数据库文件</param>
        /// <param name="password">数据库的密码</param>
        /// <param name="isReadonly">是否是只读方式打开</param>
        /// <returns>返回一个Dao实例</returns>
        IDao CreateInstance(string dbFile, string password, bool isReadonly);
    }
}
